package com.example.librarysystem.Dao;

import com.example.librarysystem.entity.Star;
import com.example.librarysystem.entity.StarInfo;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("starDao")
public interface StarDao {
    Integer selectCountByBookName(String bookName);
    Integer selectCount();
    List<StarInfo> selectStarInfo(int borrowerId, int currentPage, int pageSize);
    List<StarInfo> selectStarInfoSearch(int borrowerId, String bookName, String author, String publishingHouse, int currentPage, int pageSize);
    int selectStarInfoCount(int borrowerId);
    int selectStarInfoSearchCount(int borrowerId, String bookName, String author, String publishingHouse);
    int deleteStarById(int id);
    int selectExist(String bookName, int borrowerId);
    void insertStar(Star star);
}
